#ifndef FACEBOXUI_H
#define FACEBOXUI_H

#include <QtWidgets/QMainWindow>
#include "ui_faceboxui.h"
#include "QFigure.h"
#include <io.h>
#include <cstring>
#include <fstream>
#include <vector>
//#include "armadillo"

void getFiles(std::string path, QList<QString>& files);
void saveData(QString filename, QString files, QList<bBox>&data);
void loadTXTFile(QString filename, QList<QList<bBox>> & data, QList<QString> &files);
class FaceboxUI : public QMainWindow
{
	Q_OBJECT
public:
	FaceboxUI(QWidget *parent = 0);
	~FaceboxUI();

	private slots:
	void on_pRect_clicked();

	void on_mRect_clicked();

	void on_undo_clicked();

	void on_picleft_clicked();

	void on_picright_clicked();

	void on_boxleft_clicked();

	void on_boxright_clicked();


    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
	Ui::FaceboxUIClass ui;
	QFigure *show_;
	QString dir;
	QString fileName;
	QList<QString> files;
	QList<QList<bBox>> data;
	int id1;
	int id2;
	QString imgadd;
};

#endif // FACEBOXUI_H
